//引入mockjs
import Mock from 'mockjs'
//使用mockjs模拟数据

Mock.mock('/apiGetLiveManage', {
  "data|20-40": [
    {
      "a": "@id",//随机生成日期时间
      "b": "@csentence(3, 10)",//随机生成中文名字
    }
  ]

//data里的属性看不懂，需要详细看语法规范,博客链接:https://www.jianshu.com/p/4579f40e6108
});
Mock.mock('/v1/category-content/relation', {
  "data|20-40": [
    {
      "id": "@id",//随机生成日期时间
      "name": "@csentence(3, 10)",//随机生成中文名字
      "show_order|1-100": 1,//随机生成中文名字
      "content_resources": '@dataImage(100x100)',//随机生成中文名字
    }
  ]

//data里的属性看不懂，需要详细看语法规范,博客链接:https://www.jianshu.com/p/4579f40e6108
});
